package cx.zan.vo;

import lombok.Data;

@Data
public class ResultVo {
    public static final int CODE_NOLOGIN=2;//未登录
    public static final int CODE_AUTH_FAIL=403;
    public static final int CODE_SUCCESS=1; //登录成功
    public static final int CODE_FAILED=0;  //失败
    private int code;
    private Object data;
    private String message;

    public ResultVo() {
    }

    public ResultVo(int code, Object data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }

    public ResultVo(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResultVo(Object data) {
        this.code = CODE_SUCCESS;
        this.data = data;
        this.message = "";
    }
}
